#include <stdlib.h>
#include <stdio.h>

void main() {
  int a = -1, b = 1, fib = 0, n, i = 0;

  printf("Numero de termos: ");
  scanf("%d",&n);
	
  while(i < n) {	
	fib = a + b;		
	a = b;
	b = fib;  
	if((fib % 2 == 0) || (fib % 3 == 0)) {    
	  printf("%d\n", fib);
	} else 
	    printf("-\n");
	i++;
  }
}

